package com.emm.yixun.openapi.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.GetWorkloadStatisticsListReqDto;
import com.emm.yixun.common.app.GetWorkloadStatisticsListResDto;
import com.emm.yixun.customer.service.app.CustomerServiceAppFacade;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.vo.GetWorkloadStatisticsListReqVo;

/**
 * 查询工作量统计接口
 * @author Administrator
 *
 */
@Service("getWorkloadStatisticsListHander")
public class GetWorkloadStatisticsListHander extends com.emm.yixun.openapi.hander.base.CommonAbstractHander{
	
	@Autowired
	private CustomerServiceAppFacade customerServiceAppFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		GetWorkloadStatisticsListReqVo req = (GetWorkloadStatisticsListReqVo)reqDto;
		GetWorkloadStatisticsListReqDto reqDto1 = req.getParams();
		BaseResponseDTO<GetWorkloadStatisticsListResDto> res = new BaseResponseDTO<GetWorkloadStatisticsListResDto>();
		res.setResData(customerServiceAppFacade.getWorkloadStatisticsList(reqDto1));
		return res;
	}
	
}
